<%@ page contentType="text/xml; charset=gbk" language="java" errorPage="" %>
<%@ page language="java" import="java.io.PrintWriter"%>
<%@ page language="java" import="java.util.*"%>
<%@ page language="java" import="java.net.URLDecoder"%>
<%
    response.setHeader("Cache-Control", "no-cache");
	response.setCharacterEncoding("utf-8");
	PrintWriter xmlout = response.getWriter();
	String rs = "";
	String flag = request.getParameter("flag");
	rs += "{success:true,leaveMsg:'" + URLDecoder.decode(request.getParameter("leaveMsg"),"UTF-8");
	if(flag != null){
		rs += "',flag:'" + URLDecoder.decode(flag,"UTF-8") + "'}";
	}
	else
	{
		rs +="'}";
	}
	
	System.out.println("rs = " + rs);
	try
	{
		xmlout.write(rs);
	}
	catch (Exception e)
	{
		e.printStackTrace();
	}
	finally
	{
		xmlout.flush();
		xmlout.close();
	}
%>